-
Notifications
You must be signed in to change notification settings - Fork 34
feat(#2361): increase clickable area for radio and checkbox #3099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5d8fd63 to
79bcb45
Compare
79bcb45 to
ef25ab4
Compare
| // - matrix\(1, 0, 0, 1, = identity matrix | ||
| // - -2[0-9.]+ = negative number starting with -2 (e.g., -22, -23.6) | ||
| // - Flexible pattern accounts for border widths and sub-pixel rendering | ||
| expect(beforeStyles.transform).toMatch(/matrix\(1, 0, 0, 1, -2[0-9.]+, -2[0-9.]+\)/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is extremely specific and I think very brittle. After the tests above, I'm not sure this is adding anything useful, and would make the test far more brittle than I would like.
| // - (-22, -22) = translate by -22px in X and Y directions | ||
| // Math: 50% of 44px = 22px, so translate(-50%, -50%) = translate(-22px, -22px) | ||
| // This centers the 44px touch target on the 24px icon | ||
| expect(beforeStyles.transform).toBe("matrix(1, 0, 0, 1, -22, -22)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as the one I made for the Checkbox tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ok
e15a64e to
f25d568
Compare
|
🎉 This PR is included in version 1.40.0-dev.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 6.10.0-dev.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 4.10.0-dev.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.10.0-dev.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Before (the change)
After (the change)
Make sure that you've checked the boxes below before you submit the PR
Steps needed to test
For testing, you can add a border to the newly added styles in
::beforeand visually verify the increased clickable area, as in the screenshot below